﻿using System;
using System.ComponentModel;

namespace DreamCube.WebServer.WebHost
{
    [AttributeUsage(AttributeTargets.All)]
    internal sealed class SRCategoryAttribute : CategoryAttribute
    {
        public SRCategoryAttribute(string category) : base(category)
        {
        }

        protected override string GetLocalizedString(string value)
        {
            return DreamCube.WebServer.WebHost.SR.GetString(value);
        }
    }
}

